package com.tao.dao.manager;

import java.io.Serializable;
import java.util.List;

public interface BaseDao<T> {

    public void add(T t);  
    

    public void delete(Serializable id);  
  

    public void update(T t);  
  

    public T load(Serializable id);  
     

    public List<T> list(String hql, Object[] args); 
    
    public List<T> queryBySql(String sql);
    
    @SuppressWarnings("rawtypes")
	public List queryAll(String sql);

    public List<T> queryForPage(int offset, int length,String hql);
    

    public int getAllRowCount(String hql, Object[] args);
    
  
    public void flush();

}
